package com.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.community.mapper.CarDAO;
import com.community.dto.CarDTO;
import com.community.po.CarPO;
import com.community.service.CarService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ToDo:
 * @Author：高尚磊
 * @date: 2024/6/4 16:23
 */


@Service
@Slf4j
public class CarServiceImpl extends BaseServiceImpl<CarDAO, CarPO, CarDTO> implements CarService {
//    @Override
//    public Page<CarDTO> getAllCar(CarDTO carDTO) {
//        return this.baseMapper.getAllCar(carDTO);
//    }
//
//    @Override
//    public CarPO getRecordId(Long id) {
//        return this.baseMapper.getById(id);
//    }

    @Override
    public CarPO getById(Long id) {
        return this.baseMapper.getById(id);
    }

    @Override
    public Page<?> page(CarDTO carDTO) {
        return this.baseMapper.page(carDTO);
    }
}
